import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

class ThemeProvider with ChangeNotifier, DiagnosticableTreeMixin {
  ThemeMode _themeMode ;

//  ThemeProvider(this._themeMode);

  ThemeMode get themeMode => _themeMode;

  void change() {
    _themeMode = (_themeMode == ThemeMode.dark ? ThemeMode.light : ThemeMode.dark);
    notifyListeners();
  }

  /// Makes `Counter` readable inside the devtools by listing all of its properties
//  @override
//  void debugFillProperties(DiagnosticPropertiesBuilder properties) {
//    super.debugFillProperties(properties);
//    properties.add(IntProperty('themeMode', themeMode));
//  }
}